package com.uinnova.product.eam.local;

public class ArchReviewSubmitContext {

    private static ThreadLocal<ArchReviewSubmitContextValue> context = new ThreadLocal<>();

    public static ArchReviewSubmitContextValue getContext(){
        return context.get();
    }

    public static void setContext(ArchReviewSubmitContextValue contextValue){
        context.set(contextValue);
    }

    public static void release() {
        context.remove();
    }

    public static void init() {
        ArchReviewSubmitContextValue contextValue = new ArchReviewSubmitContextValue();
        setContext(contextValue);
    }
}